Response

data class Response(url: String, status: Int, statusText: String, headers: Headers, headersText: String?, mimeType: String, requestHeaders: Headers?, requestHeadersText: String?, connectionReused: Boolean, connectionId: Double, remoteIPAddress: String?, remotePort: Int?, fromDiskCache: Boolean?, fromServiceWorker: Boolean?, fromPrefetchCache: Boolean?, encodedDataLength: Double, timing: ResourceTiming?, serviceWorkerResponseSource: ServiceWorkerResponseSource?, responseTime: TimeSinceEpoch?, cacheStorageCacheName: String?, protocol: String?, securityState: SecurityState, securityDetails: SecurityDetails?)

HTTP response data.

Constructors

Response
Link copied to clipboard
fun Response(url: String, status: Int, statusText: String, headers: Headers, headersText: String? = null, mimeType: String, requestHeaders: Headers? = null, requestHeadersText: String? = null, connectionReused: Boolean, connectionId: Double, remoteIPAddress: String? = null, remotePort: Int? = null, fromDiskCache: Boolean? = null, fromServiceWorker: Boolean? = null, fromPrefetchCache: Boolean? = null, encodedDataLength: Double, timing: ResourceTiming? = null, serviceWorkerResponseSource: ServiceWorkerResponseSource? = null, responseTime: TimeSinceEpoch? = null, cacheStorageCacheName: String? = null, protocol: String? = null, securityState: SecurityState, securityDetails: SecurityDetails? = null)

Properties

cacheStorageCacheName
Link copied to clipboard
val cacheStorageCacheName: String? = null
Cache Storage Cache Name.
connectionId
Link copied to clipboard
val connectionId: Double
Physical connection id that was actually used for this request.
connectionReused
Link copied to clipboard
val connectionReused: Boolean
Specifies whether physical connection was actually reused for this request.
encodedDataLength
Link copied to clipboard
val encodedDataLength: Double
Total number of bytes received for this request so far.
fromDiskCache
Link copied to clipboard
val fromDiskCache: Boolean? = null
Specifies that the request was served from the disk cache.
fromPrefetchCache
Link copied to clipboard
val fromPrefetchCache: Boolean? = null
Specifies that the request was served from the prefetch cache.
fromServiceWorker
Link copied to clipboard
val fromServiceWorker: Boolean? = null
Specifies that the request was served from the ServiceWorker.
headers
Link copied to clipboard
val headers: Headers
HTTP response headers.
headersText
Link copied to clipboard
val headersText: String? = null
HTTP response headers text.
mimeType
Link copied to clipboard
val mimeType: String
Resource mimeType as determined by the browser.
protocol
Link copied to clipboard
val protocol: String? = null
Protocol used to fetch this request.
remoteIPAddress
Link copied to clipboard
val remoteIPAddress: String? = null
Remote IP address.
remotePort
Link copied to clipboard
val remotePort: Int? = null
Remote port.
requestHeaders
Link copied to clipboard
val requestHeaders: Headers? = null
Refined HTTP request headers that were actually transmitted over the network.
requestHeadersText
Link copied to clipboard
val requestHeadersText: String? = null
HTTP request headers text.
responseTime
Link copied to clipboard
val responseTime: TimeSinceEpoch? = null
The time at which the returned response was generated.
securityDetails
Link copied to clipboard
val securityDetails: SecurityDetails? = null
Security details for the request.
securityState
Link copied to clipboard
val securityState: SecurityState
Security state of the request resource.
serviceWorkerResponseSource
Link copied to clipboard
val serviceWorkerResponseSource: ServiceWorkerResponseSource? = null
Response source of response from ServiceWorker.
status
Link copied to clipboard
val status: Int
HTTP response status code.
statusText
Link copied to clipboard
val statusText: String
HTTP response status text.
timing
Link copied to clipboard
val timing: ResourceTiming? = null
Timing information for the given request.
url
Link copied to clipboard
val url: String
Response URL.

Sources

jvm source
Link copied to clipboard